﻿
namespace SwtorCalculator {
    using System;
    using System.Windows;
    using System.Windows.Input;

    /// <summary>
    /// Interaction logic for ProgressWindow.xaml
    /// </summary>
    public partial class ProgressWindow : Window {
        public ProgressWindow() {
            try {
                InitializeComponent();
            }
            catch( Exception ea ) {
                General.ErrorMessage( ea.Source.ToString(), ea.Message, ea.TargetSite.ToString(), ea.StackTrace );
            }
        }

        internal string TitleText {
            set {
                if( value != null )
                    TitleLabel.Content = value;
                else
                    TitleLabel.Content = string.Empty;
            }
        }

        private void Window_MouseLeftButtonDown( object sender, MouseButtonEventArgs e ) {
            try {
                this.DragMove();
            }
            // This type of error gets thrown everytime the 'Go Back' button is hit and then you return to the main window
            // I'll fix it eventually
            catch( InvalidOperationException ex ) { }
        }
    }
}
